import Https from '@/utils/https'

const dataqualityDetail = (params) => Https.get('/api/v1/offlineDev/dataquality/getRule', params, { needCode: true })

const dataqualityTables = (params) => Https.get('/api/v1/offlineDev/dataquality/tables', params, { needCode: true })

const dataqualityFields = (params) => Https.get('/api/v1/offlineDev/dataquality/fields', params, { needCode: true })

const getRuleTemplates = (params) => Https.get('/api/v1/offlineDev/dataquality/getRuleTemplates', params, { needCode: true })

const saveRule = (params) => Https.post('/api/v1/offlineDev/dataquality/saveRule', params, { needCode: true })

const runRule = (params) => Https.get('/api/v1/offlineDev/dataquality/runRule', params, { needCode: true })
const dataqualitystop = (params) => Https.get('/api/v1/offlineDev/dataquality/stop', params, { needCode: true })
const taskLog = (params) => Https.get('/api/v1/offlineDev/task/log', params, { needCode: true })

export {
  dataqualityDetail, dataqualityTables, dataqualityFields, getRuleTemplates, saveRule, runRule, dataqualitystop, taskLog,
}
